package com.kmzx.one.project.others.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.kmzx.one.project.config.web.Decimal2Serializer;

import java.math.BigDecimal;

public class FastProdInfo {
    // 商品id
    private String prodId;

    // 商品名称
    private String prodName;

    // 商品图片
    private String prodImg;

    // sku值
    private String skuId;

    // 价格
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal currentPrice;

    // 原价
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal prodPrice;

    // 美颜值
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal beauty;

    // 直升logo
    private String fastIcon;

    // 有无库存
    private boolean has;

    private int kinds;

    private int rankNum;

    private String rankIcon;

    private Integer devil;

    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal rankPrice;

    public String getProdId() {
        return prodId;
    }

    public FastProdInfo setProdId(String prodId) {
        this.prodId = prodId;
        return this;
    }

    public String getProdName() {
        return prodName;
    }

    public FastProdInfo setProdName(String prodName) {
        this.prodName = prodName;
        return this;
    }

    public String getProdImg() {
        return prodImg;
    }

    public FastProdInfo setProdImg(String prodImg) {
        this.prodImg = prodImg;
        return this;
    }

    public String getSkuId() {
        return skuId;
    }

    public FastProdInfo setSkuId(String skuId) {
        this.skuId = skuId;
        return this;
    }

    public BigDecimal getCurrentPrice() {
        return currentPrice;
    }

    public FastProdInfo setCurrentPrice(BigDecimal currentPrice) {
        this.currentPrice = currentPrice;
        return this;
    }

    public BigDecimal getProdPrice() {
        return prodPrice;
    }

    public FastProdInfo setProdPrice(BigDecimal prodPrice) {
        this.prodPrice = prodPrice;
        return this;
    }

    public BigDecimal getBeauty() {
        return beauty;
    }

    public FastProdInfo setBeauty(BigDecimal beauty) {
        this.beauty = beauty;
        return this;
    }

    public String getFastIcon() {
        return fastIcon;
    }

    public FastProdInfo setFastIcon(String fastIcon) {
        this.fastIcon = fastIcon;
        return this;
    }

    public boolean isHas() {
        return has;
    }

    public FastProdInfo setHas(boolean has) {
        this.has = has;
        return this;
    }

    public int getKinds() {
        return kinds;
    }

    public FastProdInfo setKinds(int kinds) {
        this.kinds = kinds;
        return this;
    }

    public int getRankNum() {
        return rankNum;
    }

    public FastProdInfo setRankNum(int rankNum) {
        this.rankNum = rankNum;
        return this;
    }

    public String getRankIcon() {
        return rankIcon;
    }

    public FastProdInfo setRankIcon(String rankIcon) {
        this.rankIcon = rankIcon;
        return this;
    }

    public BigDecimal getRankPrice() {
        return rankPrice;
    }

    public FastProdInfo setRankPrice(BigDecimal rankPrice) {
        this.rankPrice = rankPrice;
        return this;
    }

    public Integer getDevil() {
        return devil;
    }

    public FastProdInfo setDevil(Integer devil) {
        this.devil = devil;
        return this;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("FastProdInfo{");
        sb.append("prodId='").append(prodId).append('\'');
        sb.append(", prodName='").append(prodName).append('\'');
        sb.append(", prodImg='").append(prodImg).append('\'');
        sb.append(", skuId='").append(skuId).append('\'');
        sb.append(", currentPrice=").append(currentPrice);
        sb.append(", prodPrice=").append(prodPrice);
        sb.append(", beauty=").append(beauty);
        sb.append(", fastIcon='").append(fastIcon).append('\'');
        sb.append(", has=").append(has);
        sb.append(", kinds=").append(kinds);
        sb.append('}');
        return sb.toString();
    }
}
